#include "pay.h"
#include "ui_pay.h"

pay::pay(int id,double cost,QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::pay)
{
    ui->setupUi(this);

    ui->labCost->setText(QString::number(cost));
    ui->labId->setText(QString::number(id));
}

pay::~pay()
{
    delete ui;
}

void pay::on_pushButton_clicked()
{
    this->close();
}


void pay::on_pushButton_2_clicked()
{
    emit sigPay();
}

